package miage.rest.model;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import java.io.Serializable;

/**
 *
 * @author Lou
 */
@XStreamAlias("statut")
public class Statut implements Serializable {

	private static final long serialVersionUID = 1L;

	@XStreamAlias("id")
	@XStreamAsAttribute
	private Integer idStatut;

	private String nomStatut;

	public Statut() {
	}

	public Statut(Integer idStatut) {
		this.idStatut = idStatut;
	}

	public Statut(Integer idStatut, String nomStatut) {
		this.idStatut = idStatut;
		this.nomStatut = nomStatut;
	}

	public Integer getIdStatut() {
		return idStatut;
	}

	public void setIdStatut(Integer idStatut) {
		this.idStatut = idStatut;
	}

	public String getNomstatut() {
		return nomStatut;
	}

	public void setNomstatut(String nomStatut) {
		this.nomStatut = nomStatut;
	}

	@Override
	public int hashCode() {
		int hash = 0;
		hash += (idStatut != null ? idStatut.hashCode() : 0);
		return hash;
	}

	@Override
	public boolean equals(Object object) {
		// TODO: Warning - this method won't work in the case the id fields are not set
		if (!(object instanceof Statut)) {
			return false;
		}
		Statut other = (Statut) object;
		if ((this.idStatut == null && other.idStatut != null) || (this.idStatut != null && !this.idStatut.equals(other.idStatut))) {
			return false;
		}
		return true;
	}

	@Override
	public String toString() {
		return "miage.rest.model.Statut[idStatut=" + idStatut + "]";
	}
}
